package pdamh.model.unidade.trecho.calc;

import junit.framework.TestCase;
import pdamh.model.unidade.carga.calc.ImpossibleHFCalculator;

public class ImpossibleHFCalculatorTest extends TestCase {
	
	public void testGetHeightFault() {
		ImpossibleHFCalculator calculator = new ImpossibleHFCalculator(97.6, 36.19, 11.86, 390, 150, 40, 10.0, 140);
		assertEquals(3.75, calculator.getHeightFault(), 0.01);
		calculator = new ImpossibleHFCalculator(97.6, 36.19, 17.47, 300, 220, 60, 10.0, 140);
		assertEquals(3.41, calculator.getHeightFault(), 0.01);
		calculator = new ImpossibleHFCalculator(97.6, 36.77, 21.38, 180, 150, 100, 10.0, 140);
		assertEquals(2.36, calculator.getHeightFault(), 0.01);
		calculator = new ImpossibleHFCalculator(97.6, 38.53, 17.13, 300, 150, 90, 10.0, 140);
		assertEquals(3.69, calculator.getHeightFault(), 0.01);
	}

}
